<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./classes.js"></script>
  </head>
  <body>
    <script>
      const a = new Animal("狗狗", "新鲜冒热气的大骨棒");
      a.eat()

      const p = new Person("张三丰",60)
      console.log(p);
      p.eat()

      const s = new Student("小学生",32,"shoot threes")
      console.log(s);
      s.study()
      s.think()
      s.eat()

      /* 访问静态成员 */
      console.log(Person.legs);
      console.log(Person.getInfo());
    </script>
  </body>
</html>
